//
//  XLModifyPSFooterView.m
//  industry
//
//  Created by xl on 2020/12/10.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLModifyPSFooterView.h"

@interface XLModifyPSFooterView ()


@end
@implementation XLModifyPSFooterView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.reasonLB];
        [self addSubview:self.sendBtn];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [_reasonLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(30);
        make.top.equalTo(self).offset(10);
        make.right.equalTo(self).offset(-30);
    }];
    
    [_sendBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(30);
        make.bottom.equalTo(self);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH - 30*2, 45));
    }];
}
#pragma mark - Settr/getter
- (XLLabel *)reasonLB {
    if (!_reasonLB) {
        _reasonLB = [XLLabel new];
        _reasonLB.font = [UIFont fontOfPingFangSCRegularWithSize:12];
        _reasonLB.textColor = [UIColor redFontSecondColor];
        _reasonLB.numberOfLines = 0;
    }
    return _reasonLB;
}

- (XLButton *)sendBtn {
    if (!_sendBtn) {
        _sendBtn = [XLButton new];
        _sendBtn.layer.cornerRadius = 22.5;
        _sendBtn.layer.masksToBounds = YES;
        _sendBtn.backgroundColor = [UIColor blueBgColor];
        _sendBtn.titleLabel.font = [UIFont fontOfPingFangSCSemiboldWithSize:16];
        [_sendBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [_sendBtn setTitle:@"" forState:UIControlStateNormal];
    }
    return _sendBtn;
}

@end
